#ifndef HTTPREQUEST_H
#define HTTPREQUEST_H

#include <QObject>
#include <QNetworkReply>
#include <QEventLoop>

class HttpRequest:public QObject
{
    Q_OBJECT
public:
    explicit HttpRequest(QObject *parent = 0);
    ~HttpRequest();

    QNetworkReply* get(QUrl url);

private:
    QNetworkAccessManager *manager;

signals:
    void requestFinish(QNetworkReply*);

private slots:
    void excuteFinish(QNetworkReply*);
};

#endif // HTTPREQUEST_H
